package com.hotelvip.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;
/**
 * 通过此对象封装从数据库查询到的权限信息
 * @author Lzh
 * @date 2020/11/30 14:46
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@TableName("sys_roles")
@NoArgsConstructor
@ApiModel(value = "权限实体类",description = "权限对象SysRole")
public class SysRole extends BasePojo{
	@TableId(type = IdType.AUTO)
	private Integer id;
	@ApiModelProperty(value = "权限名称",name = "name",example = "超级管理员")
	private String name;
	@ApiModelProperty(value = "描述",name = "note",example = "负责系统所有模块的管理")
	private String note;
	private Date createdTime;
	private Date updatedTime;
	private String createdUser;
	private String updatedUser;
}
